@extends('layouts.admin.application')

@section('css')
    <link rel="stylesheet" href="/vendor/daterangepicker/daterangepicker.css">
@endsection

@section('content')

    <div class="admin-content">

        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">编辑服务项目</strong> /
                <small>Edit</small>
            </div>
        </div>
        <hr>
        @include('admin._flash')

        <div class="am-g">
            <div class="am-u-sm-12 am-u-md-12">

                <form class="am-form" action="/admin/bespeak/{{$bespeak->id}}" method="post">
                    {{ csrf_field() }}
                    {{ method_field('PUT') }}


                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            规格名称
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="name"value="{{$bespeak->name}}"  >
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">例：10节课送1节课</div>
                    </div>

                    <div class="am-g am-margin-top sort">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            课程数
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="course_number" class="am-input-sm" value="{{$bespeak->course_number}}">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">*不包含赠送的课程数，如40次则填写40</div>
                    </div>

                    <div class="am-g am-margin-top sort">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            赠送课程数
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="add_number"value="{{$bespeak->add_number}}" class="am-input-sm" value="">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">赠送的课程数，如5次则填写5</div>
                    </div>

                    <div class="am-g am-margin-top sort">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            单价
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="one_price" class="am-input-sm" value="{{$bespeak->one_price}}">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">一节课的价格如388元则填写388</div>
                    </div>


                    <div class="am-g am-margin-top sort">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            排序
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="sort" class="am-input-sm" value="{{$bespeak->sort}}">
                        </div>
                    </div>


                    <div class="am-g am-margin-top sort">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            是否参与线上
                        </div>


                        <span class="am-btn am-btn-default am-btn-xxs am-round">
                                        <input type="radio" name="is_use" value="1" @if($bespeak->is_use==1)checked @endif> 是
                                    </span>
                        <span class="am-btn am-btn-default am-btn-xxs am-round">
                                        <input type="radio" name="is_use" value="0" @if($bespeak->is_use==0)checked @endif >否
                                    </span>
                    </div>



                    <div class="am-margin">
                        <button type="submit" class="am-btn am-btn-primary am-radius">提交保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>


@endsection
@section('js')
    <script src="/vendor/daterangepicker/moment.js"></script>
    <script src="/vendor/moment/locale/zh-cn.js"></script>
    <script src="/vendor/daterangepicker/daterangepicker.js"></script>

    <script>


    </script>
@endsection